Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.platform.suggestbox.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.suggestbox.actions inside nuxeo-platform-suggestbox-jsf-9.10.jar /OSGI-INF/suggestbox-actions-contrib.xml

Documentation

Disable the default simple search from Nuxeo and adds a suggestion search box instead.

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action enabled="false" id="simple_search_box"/>
  • <action id="suggest_search_box" order="1" type="template">
          <category>SEARCH_ACTIONS</category>
          <filter-id>isSearchEnabled</filter-id>
          <properties>
            <property name="template">/search/suggestbox.xhtml</property>
            <property name="disableMultipartForm">true</property>
            <property name="minChars">1</property>
            <property name="multiple">false</property>
            <property name="operationId">Search.SuggestersLauncher</property>
            <property name="placeholder">label.suggestion.placeholder</property>
            <property name="readonly">false</property>
            <property name="selectionFormatter">nuxeo.suggestbox.selectedFormatter</property>
            <property name="suggestionFormatter">nuxeo.suggestbox.suggestedFormatter</property>
            <property name="onAddEntryHandler">nuxeo.suggestbox.entryHandler</property>
            <property name="autocomplete">true</property>
            <property name="dropdownCssClass">nx-header-s2-dd</property>
            <property name="containerCssClass">nx-header-s2-ct</property>
            <property name="width">300px</property>
            <property name="translatePlaceholder">true</property>
            <property name="onEnterKeyHandler">nxSuggestHandleEnterKey</property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <documentation>
      Disable the default simple search from Nuxeo and adds a
      suggestion search box instead.
    </documentation>

    <!-- disable suggest box for now, see NXP-15081 -->
    <action enabled="false" id="simple_search_box"/>

    <action id="suggest_search_box" order="1" type="template">
      <category>SEARCH_ACTIONS</category>
      <filter-id>isSearchEnabled</filter-id>
      <properties>
        <property name="template">/search/suggestbox.xhtml</property>
        <property name="disableMultipartForm">true</property>
        <property name="minChars">1</property>
        <property name="multiple">false</property>
        <property name="operationId">Search.SuggestersLauncher</property>
        <property name="placeholder">label.suggestion.placeholder</property>
        <property name="readonly">false</property>
        <property name="selectionFormatter">nuxeo.suggestbox.selectedFormatter</property>
        <property name="suggestionFormatter">nuxeo.suggestbox.suggestedFormatter</property>
        <property name="onAddEntryHandler">nuxeo.suggestbox.entryHandler</property>
        <property name="autocomplete">true</property>
        <property name="dropdownCssClass">nx-header-s2-dd</property>
        <property name="containerCssClass">nx-header-s2-ct</property>
        <property name="width">300px</property>
        <property name="translatePlaceholder">true</property>
        <property name="onEnterKeyHandler">nxSuggestHandleEnterKey</property>
      </properties>
    </action>

  </extension>